package com.sove.face.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.sove.face.contant.FaceRegisterConfig;
import com.sove.face.register.MysqlRegisterFace;
import com.sove.face.register.RegisterFace;
import com.sove.face.service.FacesService;

@Configuration
public class FaceSearchConfig {

	@Autowired
	FaceRegisterConfig faceRegisterConfig;
	@Autowired
	FacesService facesService;

	@Bean
	public RegisterFace registerFace() {

		return new MysqlRegisterFace(faceRegisterConfig,facesService);
//        return new CacheRegisterFace(faceRegisterConfig);
	}

}
